from rest_framework import serializers
from django.contrib.auth.models import Group

'''
ModelSerializer可自动序列化
ModelSerializer可实现了create和update方法

'''
class GroupSerializer(serializers.ModelSerializer):
    class Meta:
        model = Group
        fields = '__all__'
